SET( LIB_NAME OpenIG-Protocol )
SET( HEADER_PATH ${PROJECT_SOURCE_DIR}/Library-Protocol)
ADD_DEFINITIONS( -DIGLIBPROTOCOL_LIBRARY )

SET( LIB_PUBLIC_HEADERS
	${HEADER_PATH}/Export.h
    ${HEADER_PATH}/Opcodes.h	
	${HEADER_PATH}/Header.h	
	${HEADER_PATH}/EntityState.h	
	${HEADER_PATH}/Camera.h	
	${HEADER_PATH}/HOT.h
	${HEADER_PATH}/HOTResponse.h
	${HEADER_PATH}/LOS.h
	${HEADER_PATH}/LOSResponse.h
	${HEADER_PATH}/TOD.h
	${HEADER_PATH}/Command.h
	${HEADER_PATH}/LightState.h
	${HEADER_PATH}/DeadReckonEntityState.h
)

SET( LIB_SOURCE
    Header.cpp
	Camera.cpp
	EntityState.cpp
	HOT.cpp
	HOTResponse.cpp
	LOS.cpp
	LOSResponse.cpp
	TOD.cpp
	Command.cpp
	LightState.cpp
	DeadReckonEntityState.cpp
	)
	
ADD_LIBRARY( ${LIB_NAME} SHARED
	${LIB_PUBLIC_HEADERS}
    ${LIB_SOURCE}
)

INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})

TARGET_LINK_LIBRARIES( ${LIB_NAME}
    ${OSG_LIBRARIES}    
	OpenIG-Networking
	${BOOST_LIBRARIES}
)

SET_TARGET_PROPERTIES( ${LIB_NAME} PROPERTIES VERSION ${OPENIG_VERSION} )
SET_TARGET_PROPERTIES( ${LIB_NAME} PROPERTIES SOVERSION ${OPENIG_VERSION} )
SET_TARGET_PROPERTIES( ${LIB_NAME} PROPERTIES PROJECT_LABEL "Library Protocol" )
SET_TARGET_PROPERTIES (${target} PROPERTIES DEFINE_SYMBOL  "IGLIBPROTOCOL_LIBRARY")

INCLUDE( ModuleInstall REQUIRED )

